package org.camunda.bpm.getstarted.loanapproval.listener;

import org.camunda.bpm.engine.delegate.DelegateTask;
import org.camunda.bpm.engine.delegate.TaskListener;
import org.camunda.bpm.getstarted.loanapproval.mapper.TicketMapper;
import org.camunda.bpm.getstarted.loanapproval.mapper.TicketTaskMapper;
import org.camunda.bpm.getstarted.loanapproval.pojo.entity.TicketTaskDO;
import org.camunda.bpm.getstarted.loanapproval.pojo.entity.WorkstationDO;
import org.camunda.bpm.getstarted.loanapproval.pojo.entity.WorkstationTaskDO;
import org.camunda.bpm.getstarted.loanapproval.utils.ApplicationContextUtils;

import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;

public class InoculateCreateListener implements TaskListener {

    private TicketMapper ticketMapper;

    private TicketTaskMapper ticketTaskMapper;

    public InoculateCreateListener() {
        ticketMapper = ApplicationContextUtils.getBeanByClass(TicketMapper.class);
        ticketTaskMapper = ApplicationContextUtils.getBeanByClass(TicketTaskMapper.class);
    }



    @Override
    public void notify(DelegateTask delegateTask) {
        // 往tb_ticket_task里面插入一条数据
        System.out.println("监听器InoculateCreateListener=========================================================");
    }
}
